﻿@model Campus.Entities.Convocatoria

@{
    ViewBag.Title = "Modificar Convocatoria";
}

<h2>Modificar Convocatoria</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Convocatoria </legend>

        <div class="alert alert-success">Principal:</div>        

        <div class="editor-label">
            @Html.LabelFor(model => model.TituloPrincipal)
        </div>
        <div class="editor-field">
            @Html.TextBoxFor(model => model.TituloPrincipal, new {style = "width: 700px;"} )
            @Html.ValidationMessageFor(model => model.TituloPrincipal)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.SubtituloPrincipal)
        </div>
        <div class="editor-field">
            @Html.TextBoxFor(model => model.SubtituloPrincipal, new {style = "width: 700px;"} )
            @Html.ValidationMessageFor(model => model.SubtituloPrincipal)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.MensajeAdicionalPrincipal)
        </div>
         <div class="editor-field">
            @Html.TextBoxFor(model => model.MensajeAdicionalPrincipal, new {style = "width: 700px;"} )
            @Html.ValidationMessageFor(model => model.MensajeAdicionalPrincipal)
        </div>
        
        <hr />
         <div class="alert alert-danger">Mensaje:</div>

            <div class="editor-label">
            @Html.LabelFor(model => model.TituloMensaje)
        </div>
        <div class="editor-field">
            @Html.TextBoxFor(model => model.TituloMensaje, new {size = "400"} )
            @Html.ValidationMessageFor(model => model.TituloMensaje)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.ContenidoMensaje)
        </div>
        <div class="editor-field">
           @Html.TextAreaFor(model => model.ContenidoMensaje,  new {style = "width: 700px; height:200px;"}) 
            
            @Html.ValidationMessageFor(model => model.ContenidoMensaje)
        </div>
        
@*        <div class="editor-label">
            @Html.LabelFor(model => model.Activa)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Activa)
            @Html.ValidationMessageFor(model => model.Activa)
        </div>*@

                <div class="editor-label">
            @Html.LabelFor(model => model.FechaSuspendida)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.FechaSuspendida)
            @Html.ValidationMessageFor(model => model.FechaSuspendida)
        </div>


        @Html.HiddenFor(model => model.ConvocatoriaId)

                
        <div class="form-actions">
            <input type="button" id="btnSubmit"   class="btn btn-primary" value="Guardar" />
            @Html.ActionLink("Volver a la lista", "Index", new { @class = "btn" })
        </div>

        
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>
